package com.munisense.webservices.javaclient;

/**
 * Container class for a response from the Munisense webservice
 * It contains the httpStatus and the response data object.
 *
 * @param <T> Type of the response data object
 */
public class MuniHTTPResponse<T> {
	
	private int httpStatus;
	private String httpError = null;
	private T data;	
	
	/**
	 * @return the httpStatus
	 */
	public int getHttpStatus() {
		return httpStatus;
	}
	/**
	 * @param httpStatus the httpStatus to set
	 */
	public void setHttpStatus(int httpStatus) {
		this.httpStatus = httpStatus;
	}
	/**
	 * @return the httpError
	 */
	public String getHttpError() {
		return httpError;
	}
	/**
	 * @param httpError the httpError to set
	 */
	public void setHttpError(String httpError) {
		this.httpError = httpError;
	}
	/**
	 * @return the data
	 */
	public T getData() {
		return data;
	}
	/**
	 * @param data the data to set
	 */
	public void setData(T data) {
		this.data = data;
	}
}
